package com.x.game.enums;


import lombok.Getter;

/**
 * 滑动方向 - 值对象(枚举)
 */

@Getter
public enum Direction {

    UP(0, "上"),
    DOWN(1, "下"),
    LEFT(2, "左"),
    RIGHT(3, "右");

//    UP/DOWN/LEFT/RIGHT
    private final Integer code;
    private final String description;

    Direction(Integer code, String description) {
        this.code = code;
        this.description = description;
    }
}
